import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class homework {
    public static void main(String[] args) {
        int[][] arr={{11,12},{21,22,23},{31,32,33,34}};
        int sum=0;
        int g=1;
        for (int[] t:arr) {
            int f=0;
            for (int i: t) {
                f+=i;
            }
            sum+=f;
            System.out.println("第"+g+"组销售额："+f);
        }
        System.out.println("总销售额："+sum);
    }
}
